; ------------------------------------------
; Standard starter file for console applications
; ------------------------------------------
; masmedbuild RELEASE
; 	CAPT [BINDIR]\ml.exe /c /coff %1.asm
; 	CAPT [BINDIR]\Link.exe /SUBSYSTEM:CONSOLE %1.obj
; masmedbuildend
; masmedbuild DEBUG
; 	CAPT [BINDIR]\ml.exe /Zd /Zi /c /coff %1.asm
;	CAPT [BINDIR]\Link.exe /DEBUG /DEBUGTYPE:COFF /SUBSYSTEM:CONSOLE %1.obj
; masmedbuildend

; --------------- File model
			.386
			.model	flat,stdcall
			option	casemap:none

; --------------- Includes
			include	d:\masm32\include\windows.inc
	 		include d:\masm32\include\kernel32.inc
	 		include d:\masm32\include\user32.inc
	 		
	 		include d:\masm32\include\shell32.inc

; --------------- Libraries
			includelib d:\masm32\lib\kernel32.lib
			includelib d:\masm32\lib\user32.lib
			
			includelib d:\masm32\lib\shell32.lib

; --------------- Procedures declarations
Main			proto

; --------------- Datas section
			.data
			lpFileName db "index.htm",0
			Credits db "Stupid App made by Daniele Otti in Trieste 10/06/2003 (4 days before my 23 birthday ;-))",0
			lpBuffer db 255 dup(0)
; --------------- Code section
                	.code

; ---------------------
; --- Program start ---
; ---------------------
start:			
			invoke GetCurrentDirectory, 255, addr lpBuffer
			.if eax != 0 
				invoke ShellExecuteA, 0, 0, addr lpFileName, 0,addr lpBuffer,SW_MAXIMIZE
			.endif
			invoke	ExitProcess,0

end start
